package com.gzhryc.common.exceptions;

/**
 * 业务逻辑错误
 * @author 张浩
 * @version 2017-4-4
 */
public class LogicException extends Exception{
	
	private static final long serialVersionUID = 1L;
	
	private Integer error;
	private String msg;
	
	public Integer getError() {
		return error;
	}

	public void setError(Integer error) {
		this.error = error;
	}

	public LogicException(Integer error){
		this.error = error;
	}
	
	public LogicException(String msg){
		this.msg = msg;
	}
	public LogicException(Integer error,String msg){
		this.error = error;
		this.msg = msg;
	}

	@Override
	public String getMessage() {
		return msg;
	}
}
